resetAll
Type
command
Summary
Closes all open sockets and halts all pending Internet operations.
Syntax
resetAll
Description
Use the resetAll command to troubleshoot Internet connection problems.
The resetAll command closes all open sockets, including any sockets that have been opened by the Internet library; clears all variables used by the Internet library; and clears all cached data.
Since the Internet library's routines for handling http and ftp uploads and downloads are socket -based, the resetAll command resets all these operations.
The resetAll command closes all open sockets, which includes any other sockets opened by your application and any sockets in use for other uploads and downloads. Because of this, you should avoid routine use of the resetAll command. Consider using it only during development, to clear up connection problems during debugging.
The resetAll command is part of the Internet library. To ensure that the command works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "Internet" script library is selected.
Examples
if the openSockets is not empty then resetAll
Related
library: Internet library, library
message: preOpenCard, startup, openBackground, preOpenStack, openStack, socketError
command: close socket
glossary: application, variable, standalone application, debug, command, main stack, group, socket, Standalone Application Settings, upload, download, message, handler, LiveCode custom library
keyword: ftp
Compatibility and Support
Introduced
LiveCode 1.1
OS
mac
windows
linux
Platforms
desktop
server